import request from '@/utils/request'

export function loginAPI(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export const getUserInfoAPI = () => {
  return request.post('/sys/profile')
}

export const getUserDetailByIdAPI = (id) => {
  return request.get('/sys/user/' + id)
}

// 获取某个用户的基本信息
export function getUserDetailById(id) {
  return request.get('/sys/user/' + id)
}
// export function getInfo(token) {

// }

// export function logout() {

// }
